UserList = function() 
{
	//private variables

	//private functions
	function initEvent() 
	{
		$('#adduser')[0].addEventListener('click',onClickAdd);
		$('#deleteuser')[0].addEventListener('click',onClickDelete);
	}
	
	function onClickAdd()
	{
		console.log("--onClickAdd");
		location.href= "/springmvc/user/goToUserView.do?action=add";
	}

	function onClickDelete()
	{
		console.log("--test ajax call");
		  $.ajax({
		    	type: "get",
		url: '/springmvc/user/fetchUserData.do',
		data: ({id : 1}),
		dataType: "json",
		    success: function(data) {
		    	console.log(data);
		      console.log(data.name);
		    }
	  });
	}
	
	this.init = function() 
	{
		initEvent();
	};
};